function toHome(top,tmp){
    $(window).scrollTop(0);
}

$(function () {
	
	var windowHeight = $(window).height();//可视区域高
	var scale = window.screen.width/1280;
	var centerFs = 45,centerTextxFs = 23,logoTextFs=24,logoWidth=30,portalMenuLiAFs=16,btnFs=14,c2=32,twoIconFs=65;
	var twoTp1Fs = 24,twoTp2Fs=14,threeC3width=200,threeC3height=249,c2c22Fs=16,threeIconfontFs=95,threeC3textFs=20;
	var fourIconFs = 46;
	
	$('.center-text-x').css({"font-size":centerTextxFs*scale+"px"});
	$('.portal-logo .text').css({"font-size":logoTextFs*scale+"px","left":(206+logoWidth*scale)+"px"});
	
	$('.portal-logo .logo').css({"width":logoWidth*scale+"px","height":logoWidth*scale+"px"});
	$('.portal-menu li a').css({"font-size":portalMenuLiAFs*scale+"px"});
	$('.btn').css({"font-size":btnFs*scale+"px"});
	$('.c2').css({"font-size":c2*scale+"px"});
	$('.three .c22').css({"font-size":c2c22Fs*scale+"px"});
	$('.two .iconfont').css({"font-size":twoIconFs*scale+"px"});
	$('.two .tp1').css({"font-size":twoTp1Fs*scale+"px"});
	$('.two .tp2').css({"font-size":twoTp2Fs*scale+"px"});
	$('.three .c3').css({"width":threeC3width*scale+"px","height":threeC3height*scale+"px"});
	$('.three .iconfont').css({"font-size":threeIconfontFs*scale+"px"});
	$('.c3 .text').css({"font-size":threeC3textFs*scale+"px"});
	$('.four .iconfont').css({"font-size":fourIconFs*scale+"px"});
	$('.center').height(windowHeight);
    $(window).scroll(function (e,b) {
        if($(window).scrollTop()>60){
            $('.portal-fixed-bg').css({"z-index":"1"});
        }else{
            $('.portal-fixed-bg').css({"z-index":"-1"});
        }
    });

    $('#login').click(function () {
        location.href = "/html/index/login.html";
    });
	$('#reg').click(function () {
	    location.href = "/html/index/reg.html";
	});
	
    $('.center .center-text').animate({"fontSize":centerFs*scale+'px'},'slow');
});
